FROM registry.cn-hangzhou.aliyuncs.com/cras/java:1.8
VOLUME /data/logs
EXPOSE 8080
ADD durian-cloud-api-web-@project.version@.jar app.jar
RUN bash -c 'touch /app.jar'
ENV JAVA_OPTS=""
ENTRYPOINT [ "sh", "-c", "java $JAVA_OPTS -Djava.security.egd=file:/dev/./urandom -jar /app.jar" ]